﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tong;
using Tong.TongJS_Prompt;
public partial class aspnet_admin_bock_News_CX_News_Show : System.Web.UI.Page
{
    public TongUse TextData = new TongUse();

    JsPrompt JsAlert = new JsPrompt();

    Tong.ThisSiteUse.SiteTong TextThisSite = new Tong.ThisSiteUse.SiteTong();
    string tempXtrst;
    protected void Page_Load(object sender, EventArgs e)
    {      

    }


    protected void BindData()
    {
        DataTable TempTab = new DataTable();
        
        TempTab = TextData.SqlataSet("SELECT top 300 * FROM [CX_NEWS] order by CX_NEWS_id desc").Tables[0];
        if (!IsPostBack)
        {
            //GridView1.DataSource = TempTab.DefaultView;
            //GridView1.DataBind();
            
        }
        tempXtrst = CX_NEWS_Name.ClientID + "=";
        for (int i = 0; i < TempTab.Rows.Count; i++)
        {
            tempXtrst += TempTab.Rows[i]["CX_NEWS_Name"].ToString().Trim().Replace(";", "").Replace("\r", "").Replace("\n", "").Replace(" ", "").Replace("\"","")+",";  
        }
 
    }

    protected void Button1_Click(object sender, EventArgs e)
    {

    }
}
